module.exports = {
    data: {
        navBarHeight: 0,
    },
    onLoad() {
        this.selectComponent('#nav-bar')
            .getHeight()
            .then(res => {
                this.setData({ navBarHeight: res });
            });
    },
};
